﻿using System;
using Thuoc24h.Business;

namespace Thuoc24h.Home.Pages
{
    public partial class GroupBuy : BasePage.BasePages
    {
     
           protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                ProductDiscount();
                GetProductTop1();

            }

        }

      

        private void ProductDiscount()
        {
          
            rptProductDiscount.DataSource = ReviewRepository.GetProductGroupBuy(16);
            rptProductDiscount.DataBind();
        }
 
        private void GetProductTop1()
        {
            rptProductTop1.DataSource = ReviewRepository.GetProductGroupBuyTop1();
            rptProductTop1.DataBind();
        }
       
    }
}